from fastapi import APIRouter

from api.internal import response
from config import appSettings


router = APIRouter(
    prefix="/common",
    tags=["common"],
    responses={404: {"description": "Not found"}},
)


@router.get("/distribute")
async def distribute():
    config = {
        "index": {"banners": []},
        "me": {},
        "domain": {
            "img_domain": appSettings.app_img_domain,
        },
    }
    return response.success(config)
